"use strict";
/**
 * 接口
 * @author zhaojiuyi
 * @date 2022/6/1-9:51
 * @version 1.0.0
 */

import store from '@/store/index';
import {getRequest, postRequest} from './requests/requests';

export default {
  async login(loginData) {
    return await postRequest({
      url: '/login',
      params: loginData,
      isJson: 1
    })
  },
  async register(registerData) {
    return await postRequest({
      url: '/register',
      params: registerData
    })
  }
}

